package com.security.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SecurityController {
    @RequestMapping("/admin/home")
    public String adminHome() {
        return "hello admin home";
    }

    @RequestMapping("/manager/home")
    public String managerHome() {
        return "hello manager home";
    }

    @RequestMapping
    public String home() {
        return "hello index home";
    }
}
